const foo10 = function (arrays) {

    let newarr = [];
    //遍历数组匹配
    arrays.forEach(function (item) {

        //如果匹配成功，输出元素

        const newstr = item.replace(/Godless/g, "BestMyself");
        newarr.push(newstr);

    });

    console.log(newarr);
}